level = input("请输入等级：")
match level:
    case "A":
        print("优秀")
    case "B":
        print("良好")
    case "C":
        print("及格")
    case "D":
        print("不及格")
    case _:
        print("输入错误")